<template>
<div>
  <h1>作者添加页面</h1>
  用户名: <input type="text" v-model="form.name"><br>
  密码: <input type="text" v-model="form.word"><br>
  作者等级: <input type="radio" v-model="form.dengji" name="1" value="1">普通用户
  <input type="radio" v-model="form.dengji" name="1" value="2">VIP <br>
  <button @click="add">提交</button>
</div>
</template>
<script>
export default {
name: "ce_1",
  data(){
    return{
      form:{}
    }
  },
  methods:{
    add(){
      this.axios.post('user/Buser/',this.form)
      .then(res=>{
        alert(res.data)
        this.$router.push('ce_3/')
      })
    }
  }
}
</script>

<style scoped>

</style>
